<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="1" class="tableA">
  <tr>
    <td width="5%" nowrap>编号</td>
    <td>名称</td>
    <td>地址</td>
    <!--td>logo</td-->
    <td>排序</td>
    <td>操作</td>
  </tr><!--
<?php
foreach ($this->list as $v){
$editurl = $this->url($this->fullUrl, 'link', 'edit','id='.$v['id'] . '&nowp=' . $this->nowp . '&type=' . $this->type);
$delurl=$this->url($this->fullUrl, 'link', 'del', 'id='.$v['id'] . '&nowp=' . $this->nowp . '&type=' . $this->type);

print <<<EOT
-->
  <tr>
    <td nowrap>{$v['id']}</td>
    <td nowrap>{$v['name']}</td>
    <td nowrap>{$v['url']}</td>
    <td nowrap>{$v['seq']}</td>
    <td nowrap><a href="{$editurl}">编辑</a> <a href="{$delurl}" onclick="return window.confirm('确认删除:{$title}');">删除</a>
    </td>
  </tr><!--
EOT;
}
$indexurl =$this->url($this->fullUrl, 'link', 'list', 'nowp=1' . '&type=' . $this->type);
$nexturl = $this->url($this->fullUrl, 'link', 'list', 'nowp='.$this->page['next']  . '&type=' . $this->type);
$preurl = $this->url($this->fullUrl, 'link', 'list', 'nowp='.$this->page['previous']  . '&type=' . $this->type);
$lasturl = $this->url($this->fullUrl, 'link', 'list', 'nowp='.$this->page['totalpage']  . '&type=' . $this->type);
print <<<EOT
-->
  <tr>
    <td colspan="5">共{$this->page['totalnum']}个 {$this->page['nowp']}/{$this->page ['totalpage']}
<a href="{$indexurl}">首页</a>
<a href="{$nexturl}">下一页</a>
<a href="{$preurl}">前一页</a>
<a href="{$lasturl}">末页</a></td>
  </tr>
<!--
EOT;
?>-->
</table>
</body>
</html>
